<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./Tools.js"></script>
    <script>
        const content = prompt('请输入内容，判断是否为数字')
        console.log(Tools.isNum(content));
        if (Tools.isNum(content)) {
            alert ("您输入的是数字")
        } else {
            alert ("您输入的不是数字")
        }
    </script>
</body>
</html>